<?php

namespace app\pay\logic;

use app\data\util\HttpUtil;

class AfterpayLogic extends BasicLogic
{

    /**
     * @desc    获取token
     * @date    2024/8/22
     * @author  luckyXiong
     */
    public function getToken(){
        $merchantId         = Config('Logisticskey.afterpay.merchantId');
        $merchantKey        = Config('Logisticskey.afterpay.merchantKey');
        $url                = 'https://global-api.afterpay.com/v2/oauth2/token ';
        $data               = HttpUtil::getUrlAfterpay($url,$merchantId,$merchantKey);
        return  $this->jsonMessage(200,true,'获取成功',$data);
    }







}